<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
	<script>
		const ws = new WebSocket('ws://192.168.1.8:7681');
		ws.addEventListener('open', () => {
			console.log('链接上服务器了');
			ws.send('床前明月光');
		});
		ws.addEventListener('message', ({ data })=> {
			console.log(data);
		});
	</script>
</body>
</html>
